<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>";

    var btn_add = document.getElementById("btn_add"); 
    var tbody = document.getElementsByTagName("tbody")[1]; 
    tbody.onclick = function(event){
        var target = event.target;
        if(target.nodeName === "A"){
            if(target.className === "btn_del"){
                tbody.removeChild(target.parentNode.parentNode)
            }
            if(target.className === "btn_upd"){
                alert("修改");
            }
        }
    } 
    var num = 0; 
    btn_add.onclick = function(event){  
         var newTr = tbody.firstElementChild.cloneNode(true); 
         newTr.children[0].innerHTML = "<strong>"+"盒"+"</strong>";
         newTr.children[1].innerHTML = "<input style='width:45px' class='number"+num+"' onchange='checkAmount("+num+")' name='specificationList["+num+"].number' type='text' />";
         newTr.children[2].innerHTML = "<input style='width:45px' class='unitPrice"+num+"' onchange='checkAmount("+num+")' name='specificationList["+num+"].unitPrice' type='text' />";
         newTr.children[3].innerHTML = "<span class=amount"+num+" ></span>";
         newTr.className = Math.random(); 
         tbody.appendChild(newTr);
         num+=1;
    };
    
	function checkAmount(num) {
		var number = $(".number"+num).val();
		var unitPrice = $(".unitPrice"+num).val();
		if(number == '' || number == undefined || number == null
				|| unitPrice == '' || unitPrice == undefined || unitPrice == null) {
			console.log("填写错误");
			return;
		}
		$(".amount"+num).html((number*unitPrice).toFixed(2));
	}
    
    var btn_add_update = document.getElementById("btn_add_update");
    var updatebody = document.getElementsByTagName("tbody")[2];
    updatebody.onclick = function(event){
        var target = event.target;
        if(target.nodeName === "A"){
            if(target.className === "btn_del"){
            	updatebody.removeChild(target.parentNode.parentNode)
            }
            if(target.className === "btn_upd"){
                alert("修改");
            }
        }
    } 
    
    btn_add_update.onclick = function(event){ 
    	var num2 = $("#update-list-num").val();
         var newTr = tbody.firstElementChild.cloneNode(true); 
         newTr.children[0].innerHTML = "<strong>"+"盒"+"</strong>";
         newTr.children[1].innerHTML = "<input style='width:45px' class='number"+num2+"' onchange='checkAmount("+num2+")' name='specificationList["+num2+"].number' type='text' />";
         newTr.children[2].innerHTML = "<input style='width:45px' class='unitPrice"+num2+"' onchange='checkAmount("+num2+")' name='specificationList["+num2+"].unitPrice' type='text' />";
         newTr.children[3].innerHTML = "<span class=amount"+num2+" ></span>";
         newTr.className = Math.random(); 
         updatebody.appendChild(newTr);
         num2 = Number(num2) + Number(1);
         $("#update-list-num").val(num2);
    };
    
    function checkAmountAudit(num) {
		var number = $(".numberAudit"+num).text(); 
		var unitPriceAudit = $(".unitPriceAudit"+num).val();  
		if(number == '' || number == undefined || number == null
				|| unitPriceAudit == '' || unitPriceAudit == undefined || unitPriceAudit == null) {
			console.log("填写错误");
			return;
		}
		$(".unitPriceAuditTotal"+num).html("￥"+(number*unitPriceAudit).toFixed(2));
	}
</script>
 <style>
        a{
            text-decoration: none;
        }
        .one{
            margin: 0 auto;
            /* width: 1000px; */
        }
        .btns {
            margin-bottom: 5px;
        }
        .table-btn {
            display: inline-block;
            padding: .3em 1.2em;
            border-radius: 3px;
            background-color: teal;
            color: #fff;
            cursor :pointer;
        }
        table.table {
        	border: 2px solid #ccc;
            box-sizing: border-box;
            padding-top:5px;
            border-collapse: collapse;
        }
        table.table td ,
        table.table th {
            border: 2px solid #ccc;
            line-height: 2em;
            text-align: center;
        }
        .none {
            display: none;
        }
        td,th { white-space: nowrap; }
    </style>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/productsupplyCtrl.js"></script>
<input type="hidden" id="update-list-num" value=0 />
<input type="hidden" id="isInterior" value="${_user_supplier.isInterior}" />
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">供货管理</h3>
			</div>
			<input id="queryType" value="ht" style="display:none;"></input>
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">
					<!-- 查询开始 -->
					<div class="form-group">
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">商品货号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="productCode" placeholder="商品货号">
							</div>
						</div>				
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">供应商货号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="productSn" placeholder="供应商货号">
							</div>
						</div>
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">商品名称：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="productName" placeholder="商品名称">
							</div>
						</div>
						
						<div class="col-lg-34 more clearfix">
							<div class="morePart"><span>更多筛选</span>&nbsp;</div>														
							<button type="button" class="searchBtn">查询</button>	
							<button type="button" class="clearBtn">清空</button>					
						</div>
					</div>
					<div class="form-group distant"> 
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">审核状态：</label>							
							<div class="colPart">
								<select name="auditStatus">
									<option value="">请选择</option>
									<option value="1">待审核</option>
									<option value="2">审核通过</option>
									<option value="3">不通过</option>
								</select>
							</div> 						
						</div>
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">销售状态：</label>							
							<div class="colPart">
								<select name="saleStatus">
									<option value="">请选择</option>
									<option value="1">销售中</option>
									<option value="2">停售</option> 
								</select>
							</div> 						
						</div>
						<div class="col-lg-52 time clearfix">
							<label class="control-label labelPart">创建时间：</label>
							<div class="input-daterange input-group start ">
								<input type="text" class="input input-sm form-control" id="date-start" placeholder="起始时间" readonly="readonly" /> 
								<span class="input-group-addon">至</span> 
								<input type="text" class="input input-sm form-control" id="date-end" placeholder="结束时间" readonly="readonly" />
							</div>
						</div>
					</div>
					<!-- 查询结束 -->
					<ul class="clearfix listwork">
						<li data-target=".modal-addNews" data-toggle="modal" class="add clearfix"><i></i>我要供货</li>
						<!-- <li class="del delete-batch clearfix" id="deleteMany"><i></i>删除</li> -->
					</ul>
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr> 
									<th>序号</th>
									<th>商品货号</th>
									<th>供应商货号</th> 
									<th>商品名称</th>
									<th>效期</th>
								    <th>规格</th>
								    <th>库存</th>  
								    <th>运费模板 </th>
								    <th>审核状态</th>
								    <th>销售状态</th> 
								    <th>创建时间</th>
									<th>操作</th>
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>

	
<!-- 添加供货s -->
<div class="modal fade modal-addNews" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">   <%-- action="<%=path%>/productsupply/add" enctype="multipart/form-data" --%>
			<form class="form-horizontal" method="post" id="addshopForm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 id="myModalLabel">商品供货</h4>
				</div>
				<div class="modal-body">  
					
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品分类：</label>
							
							<div style="width:50%" class="input-group address-group">
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditProMenu" class="btn btn-sm btn-default dropdown-toggle line" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="provinceQuery">
										  
									</ul>
								<input type="hidden" class="input-hidden input-sm" value="0" name="firstProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditCityMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="cityQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="secondProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditDistMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="countyQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="thirdroductType">  
								</div>  
								<input type="hidden" class="input-hidden input-sm form-control" placeholder="" name="productType" id="receiverpcdt">
							</div> 
							
						</div>
					</div>			
					
					<div class="form-group clearfix">	
						<div class="col-lg-81">
							<label class="col-sm-41 control-label"><span class="red">*</span>选择商品：</label>
							<div style="width:50%" class="col-sm-81" >
								<select id="addProdctSelect" name="productId">

								</select> 
							</div>
						</div>	
					</div>	
					
					<div class="form-group clearfix" style="display: none" id="add-product-info"  >	
						<div class="col-lg-81"> 
							<div style="width:100%" class="col-sm-81" > 
								<div style="width:40%;float:left;padding-left:30px">
									<img src=""
										style="width:300px" id="show-product-img" align="absmiddle" />
								</div>
								<div style="float:right;padding-top:40px;padding-left:10px;width:60%"  >
									<p id="showProductName"> </p>
									<br>
									<p id="showProductType" class="product-info">  </p> 
									<p id="showTradeType" class="product-info">  </p> 
									<p id="showPackType" class="product-info">  </p> 
									<p id="showAttr" class="product-info">  </p>
								</div> 
							</div>
						</div>	
					</div>	
							
					<div class="form-group clearfix">	
					
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品货号：</label>
							<div class="col-sm-81">
								<input type="text" name="productSn" class="form-control input-sm" placeholder="供应商侧商品货号"> 
							</div>
						</div>		
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>贸易类型：</label>
							<div class="col-sm-81">
								<select name="tradeType">
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select> 
							</div>
						</div>	 
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>净重：</label>
							<div class="col-sm-81">
								<input type="text" name="netWeight" class="form-control input-sm" placeholder="商品净重，单位：kg">
							</div>
						</div>
						
					</div>
					<div class="form-group clearfix">
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>毛重：</label>
							<div class="col-sm-81">
								<input type="text" name="grossWeight" class="form-control input-sm" placeholder="商品毛重，单位：kg">
							</div>
						</div>
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>库存数量：</label>
							<div class="col-sm-81">
								<input type="text" name="inventoryQuantity" class="form-control input-sm" placeholder="库存数量">
							</div>
						</div>			
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>运费模板：</label>
							<div class="col-sm-81">
								<select name=freightId> 
								
								</select>
							</div>
						</div>
						
					</div>
					
					<div class="form-group clearfix">	
						
						<!-- 销售状态，1销售中，2停售 -->
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>销售状态：</label>
							<div class="col-sm-81">
								<select name="saleStatus"> 
									<option value="1">销售中</option>
									<option value="2">停售</option>
								</select>
							</div>
						</div> 
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">报关单号：</label>
							<div class="col-sm-81">
								<input type="text" name="customsDeclarationNo" class="form-control input-sm" placeholder="保税商品必填">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>效期：</label>
							<div class="col-sm-81">
								<input type="text" name="dateValue" id="dateValue" class="form-control input-sm"
								 readonly="readonly" placeholder="请选择效期">
							</div>
						</div>			
					</div>	 
					
					<div class="form-group clearfix">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">海关编码：</label>
							<div class="col-sm-81">
								<input type="text" name="customsHsCode" class="form-control input-sm" placeholder="海关HS编码，保税商品必填">
							</div>
						</div>
					</div>

					<div class="form-group clearfix">
						
						
						<div class="col-lg-161">
							<label class="col-sm-81 control-label">海关报关/通关单：</label>
							<div class="col-sm-127">
								<input type="file" change="imgupload()" class="customsDeclarationImg" accept="image/jpg,image/jpeg,image/png,image/bmp"/>
								<img src="" id="customsDeclarationImgShow" style="width:300px" />
								<div style="float: left;" class="mainshow"></div> 
							</div>
							<input type="hidden" name="customsDeclarationImg"  />
						</div>
					</div>	

					<div class="form-group clearfix">	
						<div class="one">
        <div class="btns">
        	<span class="red">*</span>规格报价：  
            <div class="table-btn" id="btn_add">添加</div> 
        </div>
        <table class="table" style="width:60%" >
            <thead>
                <tr> 
                    <th width="20px">规格包装</th>
                    <th width="20px">规格数量</th>
                    <th width="20px" id="specification-title">包邮未含税(单价)</th> 
                    <th width="20px">总价</th>  
                    <th width="20px"> </th>
                </tr>
            </thead>
            <tbody id="add">
                <tr class="none" > 
                    <td></td>
                    <td></td> 
                    <td></td> 
                    <td></td> 
                    <td>
                        <a class="btn_del" href="javascript:void(0)">删除</a> 
                    </td>
                </tr>
            </tbody>
        </table>
    </div>	
					</div>	 
					
				</div>
				<div class="modal-footer">
					<span  class="errorMsg red"></span> 
					<button type="button" class="btn btn-primary" id="btn_addshop">保存</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>	
			</form>
		</div>		
				
	</div>
			
</div>
<!-- 添加供货e -->

<!-- 修改供货s -->
<div class="modal fade modal-editNews" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">  
			<form class="form-horizontal" method="post" id="updateForm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 id="myModalLabel">商品供货修改</h4>
				</div>
				<input type="hidden" name="id" />
				<div class="modal-body">   		  
					
					<div class="form-group clearfix"  >	
						<div class="col-lg-81"> 
							<div style="width:100%" class="col-sm-81" > 
								<div style="width:40%;float:left;padding-left:30px">
									<img src=""
										style="width:300px" id="show-product-img-update" align="absmiddle" />
								</div>
								<div style="float:right;padding-top:40px;padding-left:10px;width:60%"  >
									<p id="showProductNameUpdate"> </p>
									<br>
									<p id="showProductTypeUpdate" class="product-info">  </p> 
									<p id="showTradeTypeUpdate" class="product-info">  </p> 
									<p id="showPackTypeUpdate" class="product-info">  </p> 
									<p id="showAttrUpdate" class="product-info">  </p>
								</div> 
							</div>
						</div>	
					</div>	
							
					<div class="form-group clearfix">	
					
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品货号：</label>
							<div class="col-sm-81">
								<input type="text" name="productSn" class="form-control input-sm" placeholder="供应商侧商品货号"> 
							</div>
						</div>		
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>贸易类型：</label>
							<div class="col-sm-81">
								<select name="tradeType">
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select> 
							</div>
						</div>	 
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>净重：</label>
							<div class="col-sm-81">
								<input type="text" name="netWeight" class="form-control input-sm" placeholder="商品净重，单位：kg">
							</div>
						</div>
						
					</div>
					<div class="form-group clearfix">	 
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>毛重：</label>
							<div class="col-sm-81">
								<input type="text" name="grossWeight" class="form-control input-sm" placeholder="商品毛重，单位：kg">
							</div>
						</div>
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>库存数量：</label>
							<div class="col-sm-81">
								<input type="text" name="inventoryQuantity" class="form-control input-sm" placeholder="库存数量">
							</div>
						</div>			
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>运费模板：</label>
							<div class="col-sm-81">
								<select name=freightId> 
								
								</select>
							</div>
						</div> 

					</div>
					
					<div class="form-group clearfix">	
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">海关编码：</label>
							<div class="col-sm-81">
								<input type="text" name="customsHsCode" class="form-control input-sm" placeholder="海关HS编码，保税商品必填">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">报关单号：</label>
							<div class="col-sm-81">
								<input type="text" name="customsDeclarationNo" class="form-control input-sm" placeholder="保税商品必填">
							</div>
						</div>	
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>效期：</label>
							<div class="col-sm-81">
								<input type="text" name="dateValue" id="dateValueUpt" class="form-control input-sm"
								 readonly="readonly" placeholder="请选择效期">
							</div>
						</div>
								
					</div>	 

					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-81 control-label"><span class="red">*</span>海关报关/通关单：</label>
							<div class="col-sm-127">
								<input type="file" change="imgupload()" class="customsDeclarationImgUpdate" accept="image/jpg,image/jpeg,image/png,image/bmp"/>
								<img style="width:300px" id="customsDeclarationImg-update" alt="" src="">
								<div style="float: left;" class="mainshow"></div> 
							</div>
							<input type="hidden" name="customsDeclarationImg"  />
						</div>
					</div>	

					<div class="form-group clearfix">	
						<div class="one">
        <div class="btns">
        	<span class="red">*</span>规格报价：  
            <div class="table-btn" id="btn_add_update">添加</div> 
        </div>
        <table class="table" style="width:60%" >
            <thead>
                <tr>
                    <th width="20px">规格包装</th>
                    <th width="20px">规格数量</th>
                    <th width="20px" id="specification-title-update">包邮未含税(单价)</th>  
                    <th width="20px">总价</th>  
                    <th width="20px"> </th>
                </tr>
            </thead>
            <tbody id="specificatio-update">   
            
            </tbody>
        </table>
    </div>	
					</div>	 
				</div>
				<div class="modal-footer">
					<span  class="errorMsg red"></span> 
					<button type="button" class="btn btn-primary" id="btn_updateshop">保存</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>	
			</form>
		</div>		
				
	</div>
			
</div>
<!-- 修改供货e -->

<!-- 查看详情s -->
<div class="modal fade modal-productsupply-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">  
			<form class="form-horizontal" method="post" id="detailForm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 id="myModalLabel">商品供货详情</h4>
				</div>
				<input type="hidden" name="id" />
				<div class="modal-body"> 
					<div class="form-group clearfix"  >	
						<div class="col-lg-81"> 
							<div style="width:100%" class="col-sm-81" > 
								<div style="width:40%;float:left;padding-left:30px">
									<img src=""
										style="width:300px" id="detail-product-img" align="absmiddle" />
								</div>
								<div style="float:right;padding-top:40px;padding-left:10px;width:60%"  >
									<p id="detail-ProductName"> </p>
									<br>
									<p id="detail-ProductType" class="product-info"></p> 
									<p id="detail-TradeType" class="product-info"></p> 
									<p id="detail-PackType" class="product-info"></p> 
									<p id="detail-Attr" class="product-info">  </p>
								</div> 
							</div>
						</div>	
					</div>	
							
					<div class="form-group clearfix">	
					
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">商品货号：</label>
							<div class="col-sm-81">
								<input type="text" name="productSn" class="form-control input-sm" readonly="readonly" > 
							</div>
						</div>		
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">贸易类型：</label>
							<div class="col-sm-81">
								<select name="tradeType" readonly="readonly" >
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select> 
							</div>
						</div>	 
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">净重：</label>
							<div class="col-sm-81">
								<input type="text" name="netWeight" class="form-control input-sm" readonly="readonly" >
							</div>
						</div>
						
					</div>
					<div class="form-group clearfix">
					
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">毛重：</label>
							<div class="col-sm-81">
								<input type="text" name="grossWeight" class="form-control input-sm" readonly="readonly" >
							</div>
						</div>
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">库存数量：</label>
							<div class="col-sm-81">
								<input type="text" name="inventoryQuantity" class="form-control input-sm" readonly="readonly" >
							</div>
						</div>			
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">运费模板：</label>
							<div class="col-sm-81">
								<select name="freightId" readonly="readonly"> 
								
								</select>
							</div>
						</div>

					</div>
					
					<div class="form-group clearfix">	
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">海关编码：</label>
							<div class="col-sm-81">
								<input type="text" name="customsHsCode" class="form-control input-sm" readonly="readonly" >
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">报关单号：</label>
							<div class="col-sm-81">
								<input type="text" name="customsDeclarationNo" class="form-control input-sm" readonly="readonly" >
							</div>
						</div>	
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">效期：</label>
							<div class="col-sm-81">
								<input type="text" name="dateValue" id="dateValueUpt" class="form-control input-sm"
								 readonly="readonly" >
							</div>
						</div>		
					</div>	 

					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-81 control-label">海关报关/通关单：</label>
							<div class="col-sm-127"> <img style="width:300px" id="customsDeclarationImg-detail" alt="" src=""> 
							</div> 
						</div>
					</div>	

					<div class="form-group clearfix">	
						<div class="one">
				        <div class="btns">
				        	规格报价：   
				        </div>
				        <table class="table" style="width:60%" >
				            <thead>
				                <tr>
				                    <th width="20px">规格包装</th>
				                    <th width="20px">规格数量</th>
				                    <th width="20px" id="specification-title-detail">包邮未含税(单价)</th>  
				                    <th width="20px">总价</th>  
				                    <c:if test="${_user_supplier.isInterior == '1'}">
					                    <th width="20px">审核后单价</th>
					                    <th width="20px">审核后总价</th>
					                </c:if>
				                </tr>
				            </thead>
				            <tbody id="specificatio-detail">   
				            
				            </tbody>
				        </table>
				    </div>	
					</div>	 
				</div>
				<div class="modal-footer"> 
					<span class="detailMsg red"></span>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>	
			</form>
		</div>		
				
	</div>
			
</div>
<!-- 查看详情e -->


<!-- 商品审核s -->
<div class="modal fade modal-audit-product modal-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">商品供货审核</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="auditProductForm"> 
					<input type="hidden" name="id" />  
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">商品名称：</label>
							<div class="colPart6 dropdown">	 
								<input type="text" readonly="readonly" class="form-control input-sm" name="productName"> 
							</div> 
						</div>
					</div>  
					
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">加价方式：</label>
							<div class="colPart6 dropdown">	 
								<select id="raisePriceType" style="height:30px">
									<option value="">请选择加价方式</option>
									<option value="1">按百分比加价</option>
									<option value="2">按金额数加价</option> 
								</select> 
							</div> 
						</div>
					</div> 
					
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">加价幅度：</label>
							<div class="colPart6 dropdown">	 
								<input type="text" class="input-sm form-control" onchange="raisePrice()"
								placeholder="请输加价百分比或者加价金额" id="raisePriceValue" />
							</div> 
						</div>
					</div> 
					
					<table class="table" style="width:80%">
			            <thead>
			                <tr>
			                    <th>规格包装</th>
			                    <th>规格数量</th>
			                    <th id="specification-audit-title">包邮未含税(单价)</th>  
			                    <th>总价</th> 
			                    <th style="color: red">审核单价</th>  
			                    <th style="color: red">审核总价</th>   
			                </tr>
			            </thead>
			            <input type="hidden" id="specificatio-audit-list-size" />
			            <tbody id="specificatio-audit">
				            

			            </tbody>
			        </table>
			        
			        <input name="auditStatus" type="hidden" />
					
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">审核备注：</label>
							<div class="colPart6 dropdown">	
								<input type="text"  style="height:40px" name="auditOpinion" class="input-sm form-control" placeholder="请输入审核备注">	 
							</div> 
						</div>
					</div> 
			</form> 
			</div>
			<div class="modal-footer"> 
				<span  class="errorMsgAudit red"></span> 
				<button type="button" class="btn btn-success" id="btn_audit_pass">通过</button>
				<button type="button" class="btn btn-danger" id="btn_audit_notpass">不通过</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>	 
		</div>	 
	</div>
			
</div>
<!-- 商品审核e -->


